<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" >
  <tr>
    <td width="3%" align="left" ><img src="{tpl_path}images/forward.jpg" /></td>
    <td width="97%" align="left" >您现在的位置：<a href="<?php echo $url;?>">留言列表</a> &gt; 留言修改</td>
  </tr>
</table>
<fieldset>
<legend>留言详情</legend>
  <table width="100%"  border="0" cellpadding="3" cellspacing="0" >
    <tr>
      <td width="89">客户名称：</td>
      <td width="243"><?php echo $edit_data['user_name'];?></td>
      <td width="94">电话：</td>
      <td width="291"><?php echo $edit_data['tel'];?></td>
    </tr>
    <tr>
      <td width="89">E-mail：</td>
      <td width="243"><?php echo $edit_data['email'];?></td>
      <td width="94">留言日期：</td>
      <td width="291"><?php echo date("Y-m-d H:i:s",$edit_data['create_date']);?></td>
    </tr>
    <tr>
      <td width="89">是否审核：</td>
      <td width="243">
      <?php 
		if($edit_data['is_pass'])
		{
		?>
          <img src="{tpl_path}images/yes.gif" title="已审核"/>
          <?php
		}
		else
		{
		?>
          <img src="{tpl_path}images/no.gif" title="未审核"/>
          <?php
		}
		?>      </td>
      <td width="94">&nbsp;</td>
      <td width="291">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="4" align="left" valign="top">
      <b>留言内容：</b><br />
      <?php echo $edit_data['content'];?>
      </td>
    </tr>
  </table>
</fieldset>
<fieldset>
<legend>留言回复</legend>
<form action="<?php echo site_url(CTL_FOLDER."guestbook/save_record");?>" method="post" name="dialog_edit_form" id="dialog_edit_form">
  <table width="100%"  border="0" cellpadding="3" cellspacing="0" >
    <tr>
      <td><?php echo $reply->create();?></td>
    </tr>
  </table>
  <input name="rd_id" type="hidden" value="<?php echo $edit_data['id'];?>" />
  <input name="url" type="hidden" value="<?php echo $url;?>" />
  <input type="button" name="sbmit" style=" margin-left:160px; margin-bottom:10px; margin-top:10px" onclick="subForm(this.form,this)" value="回复" class="button-style2" />
</form>
</fieldset>
<?php $this->load->view(TPL_FOLDER."footer");?>